<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>
            <h1>联系我们</h1>
            <h3><a href="<?php print U('Admin/user/index');?>">退出</a></h3>
            <table border='1' cellspacing='0'> 
                <tr>
                    <th>name</th>
                    <th>email</th>
                    <th>qq</th>
                    <th>phone</th>
                    <th>body</th>
                    <th>操作</th>
                </tr>
                <?php foreach($data as $key=>$value){?>
                    <tr>
                        <th><?php print $value['name'];?></th>
                        <th><?php print $value['email'];?></th>
                        <th><?php print $value['qq'];?></th>
                        <th><?php print $value['phone'];?></th>
                        <th><?php print $value['body'];?></th>
                        <th><a href="<?php print U('Admin/contact/delete?id='.$value['id']);?>">删除</a></th>
                    </tr>
                <?php }?>
            </table>    
            
        </div>
    </body>
</html>